package mlz.c_genericity.a_class;

//<E>
//N\A\S: 可以表示所有的数据类型 Object
public class Student<N,A,S> {
    private N name;
    private A age;
    private S sex;

    public Student(N name, A age, S sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public N getName() {
        return name;
    }

    public void setName(N name) {
        this.name = name;
    }

    public A getAge() {
        return age;
    }

    public void setAge(A age) {
        this.age = age;
    }

    public S getSex() {
        return sex;
    }

    public void setSex(S sex) {
        this.sex = sex;
    }
}
